-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix inconsistent workspace tooltip #32325
Conversation
@cubuspl42 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
@chie2727 Please fix the "Lint code" check See if reordering the functions will do the trick. |
I'm sorry for this situation. C+s and internal engineers have multiple assignments. Issues sometimes fall out of the radar. Feel free to ping C+ every day during the C+ review phase, and during the internal engineer review phase (now) you can also directly ping the assigned internal engineer every two days or so. Of course, ideally, this would never be necessary, and quite often it isn't. |
@chie2727 Please fix the "Lint code" check |
@nkuoch I've fixed the Lint Code check by moving getRootParentReport() up in the script. (I also moved up getParentReport() for ease of findability.) |
@chie2727 Please pay attention to the checks section and iterate as long as needed. |
@nkuoch @cubuspl42 |
The "PR Author Checklist" checklist is failing. Is it possible that the checklist template has changed in the meantime? |
@cubuspl42 |
/** | ||
* Using typical string concatenation here due to performance issues | ||
* with template literals. | ||
*/ |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
*/ | ||
function getReport(reportID: string | undefined): OnyxEntry<Report> | EmptyObject { | ||
/** | ||
* Using typical string concatenation here due to performance issues |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
if (!report?.parentReportID) { | ||
return {}; | ||
} | ||
return allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${report.parentReportID}`] ?? {}; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
||
/** | ||
* Returns the root parentReport if the given report is nested. | ||
* Uses recursion to iterate any depth of nested reports. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
* Returns the root parentReport if the given report is nested. | ||
* Uses recursion to iterate any depth of nested reports. | ||
*/ | ||
function getRootParentReport(report: OnyxEntry<Report> | undefined | EmptyObject): OnyxEntry<Report> | EmptyObject { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
} | ||
|
||
/** | ||
* Returns the root parentReport if the given report is nested. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
return {}; | ||
} | ||
|
||
// Returns the current report as the root report, because it does not have a parentReportID |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
|
||
const parentReport = getReport(report?.parentReportID); | ||
|
||
// Runs recursion to iterate a parent report |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
@cubuspl42 |
@chie2727 I'm sorry. I went through my queue and started commenting without noticing that you moved this stuff to satisfy the linter. We always handle multiple issues simultaneously and sometimes become victims of context switching. Also, I could be tired. |
@chie2727 Next time, please fill in the "Screenshots/Videos" section. Please don't check off checkboxes without reading them. |
Reviewer Checklist
Screenshots/VideosWebarchived-workspace-tooltip-web.mp4Mobile Web - Chromearchived-workspace-tooltip-android-web-compressed.mp4Mobile Web - Safariarchived-workspace-tooltip-ios-web.mp4DesktopiOSarchived-workspace-tooltip-ios.mp4Androidtranslate-invite-member-android-compressed.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chie2727 Please merge main
@cubuspl42 The "PR Reviewer Checklist" seems to be failing due to missing checkboxes. I believe after it's been updated I'll be able to merge. |
@chie2727 Have you merged Merging |
I think it just needs to re-run. I think it still processed the old checklist comment before I deleted it. |
@cubuspl42 |
No, I mean merging the upstream This is what this checkbox is talking about:
It can be done with these commands (when the feature branch is checked out):
...assuming the |
I see! Sorry for the confusion. I've merged |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #31894 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.22-0 🚀
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.22-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
|
Details
Fix for archived workspace name in tooltip showing up as 'Unavailable workspace' while the workspace name in the header banner shows correctly
Fixed Issues
$ #31894
PROPOSAL: #31894 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
expensify_31894_solution.mp4
MacOS: Desktop